package com.xcw.service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

import java.util.*;

/**
 * @Author bhx
 * @Date 2022/8/24 11:12
 * @Description TODO
 */
/*
* */
public class Test {
    public static void main(String[] args) {
        Map<String,Object>  m1 = new HashMap<>();
        m1.put("paramValue","WEB");
        m1.put("sensitiveInfoFlag","N");
        m1.put("paramKey","cashierType");
        Map<String,Object>  m2 = new HashMap<>();
        m2.put("paramValue","ACCESS_WEB");
        m2.put("sensitiveInfoFlag","N");
        m2.put("paramKey","accessType");
        JSONArray jsonArray = new JSONArray(2);
        jsonArray.add(m1);
        jsonArray.add(m2);
//        System.out.println(jsonArray);
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("extraParamList",jsonArray);
        System.out.println(jsonObject);

    }
}
